package com.harmontronics.hanma.paas.paas.domain.iam.repository.mapper;

import com.harmontronics.hanma.paas.paas.domain.organization.entity.UserGroupTree;
import com.harmontronics.hanma.paas.paas.domain.iam.repository.po.HmUserGroupPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户组
 * 
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-04-07 10:35:20
 */
@Mapper
public interface HmUserGroupMapper extends BaseMapper<HmUserGroupPO> {

    List<UserGroupTree> selectUserGroupTree();

    List<UserGroupTree> selectUserGroupTreeWithAppUserId(Long userId);

    Integer selectMaxSerialNum(Long parentId);

    HmUserGroupPO selectParentGroupWithChildrenId(Long groupId);
	
}
